<%@ Page Language="VB" AutoEventWireup="false" CodeFile="QueryList.aspx.vb" Inherits="Admin_QueryList" %>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">

<html xmlns="http://www.w3.org/1999/xhtml" >
<head runat="server">
    <title>Untitled Page</title>
    <style type="text/css" media="screen">
	    @import url(../style/style_iframe.css);
	</style>
</head>
<body>
    <div id="pagina_iframe" >	
      <h1 class="titolo_iframe" style="position: static; ">
          ASM - Gestione query aziendali - Gestione Query</h1>
    </div>
    <form id="form1" runat="server">
    <div>
        <asp:Panel ID="Panel1" runat="server" Height="50px" HorizontalAlign="Center" Width="100%">
            <asp:Button ID="BTN_new_query" runat="server" Text="Nuova Query" />
            <asp:Button ID="BTN_delete_query" runat="server" Text="Cancella Query " />
            <br />
            <br />
            <asp:GridView ID="GRV_querylist" runat="server" AutoGenerateColumns="false" BackColor="White"
                BorderColor="#999999" BorderStyle="None" BorderWidth="1px" CellPadding="3" DataKeyNames="QRY_codice"
                Font-Names="Arial" Font-Size="Medium" GridLines="Vertical" Width="90%">
                <FooterStyle BackColor="#CCCCCC" ForeColor="Black" />
                <RowStyle BackColor="#EEEEEE" ForeColor="Black" />
                <SelectedRowStyle BackColor="#008A8C" Font-Bold="True" ForeColor="White" />
                <PagerStyle BackColor="#999999" ForeColor="Black" HorizontalAlign="Center" />
                <HeaderStyle BackColor="#000084" Font-Bold="True" ForeColor="White" />
                <AlternatingRowStyle BackColor="Gainsboro" />
                <Columns>
                    <asp:TemplateField>
                        <ItemTemplate>
                            <asp:CheckBox ID="CHB_select" runat="server" />
                        </ItemTemplate>
                        <ItemStyle Width="5%" />
                    </asp:TemplateField>
                    <asp:TemplateField HeaderText="Stato">
                        <ItemTemplate>
                            <asp:Label ID="LBL_query_stato" runat="Server" Text='<%# DecodeStato(Eval("QRY_stato")) %>'></asp:Label>
                        </ItemTemplate>
                        <ItemStyle Width="20%" />
                    </asp:TemplateField>
                    <asp:TemplateField HeaderText="Sched">
                        <ItemTemplate>
                        <asp:Image ImageUrl="~/img/orologio.png" runat="Server" Visible='<%# QuerySchedulata(Eval("QRY_codice")) %>' />
                        </ItemTemplate>
                        <ItemStyle Width="10%" />
                    </asp:TemplateField>
                    <asp:TemplateField HeaderText="Nome">
                        <ItemTemplate>
                            <asp:LinkButton ID="LNK_user_edit" runat="Server" CommandName="edit" Text='<%# Eval("QRY_nome") %>'></asp:LinkButton>
                        </ItemTemplate>
                        <ItemStyle Width="75%" />
                    </asp:TemplateField>
                </Columns>
            </asp:GridView>
        </asp:Panel>
    
    </div>
    </form>
</body>
</html>
